#include <iostream>
#include "Stack.h"

using namespace std;

void test0(){
    Stack *stack1 = new Stack();

    stack1->push(8);
    stack1->push(7);
    stack1->push(6);
    stack1->push(5);
    stack1->push(4);
    stack1->push(3);
    stack1->push(2);

    stack1->pop();
    cout << stack1->top() << endl;
    stack1->pop();
    cout << stack1->top() << endl;
    stack1->pop();
    cout << stack1->top() << endl;
    stack1->pop();
    cout << stack1->top() << endl;
    stack1->pop();
    cout << stack1->top() << endl;
    stack1->pop();
    cout << stack1->top() << endl;
    delete stack1;

    Stack s1(15);
    s1.push(1);
    s1.push(1);
    s1.push(1);
    s1.push(1);
    s1.push(1);

    Stack s2(s1);
    s2.pop();
    s2.pop();
    s2.pop();

    Stack s3 = s2;

}


int main() {
    test0();
    return 0;
}
